// lib/db/schema.ts
import {pgTable, serial, text, timestamp} from 'drizzle-orm/pg-core'

// @ts-ignore
export const $notes = pgTable('notes', {
    id: serial('id').primaryKey(),
    name: text('name').notNull(),
    createAt: timestamp('created_at').notNull().defaultNow(),
    imageUrl: text('imageUrl'),
    userId: text('user_id').notNull(),
    editorState: text('editor_state'),
})

export type NoteType = typeof $notes.$inferInsert
